<?php

namespace app\admin\validate;

use think\Validate;
/**
 *  Admin后台登录
 *  自动验证模型类
 * Class Admin
 * @package app\validate\model
 */
class Admin extends Validate
{
    //验证规则
    protected $rule = [
        'admin_username'=>'require',
        'admin_password'=>'require',
        'code'=>'require|captcha'
    ];
    protected $message = [
        'admin_username.require'=>'请输入用户名',
        'admin_password.require'=>'请输入密码',
        'code.require'=>'请输入验证码',
        'code.captcha'=>'验证码不正确'
    ];
}
